// 用户接口
import request from '@/utils/request.js'


export function setInfo(data){
	return request({
		url:'/systemApi/thirdUser/wxUserSet',
		data,
		method:'post'
	})
}

//注册
export function exhibitRegister(data){
	return request({
		url:'/third/wxMaUser/exhibitRegister',
		data,
		method:'post'
	})
}

// 登录
export function exhibitLogin(data){
	return request({
		method:'post',
		data,
		url:'/third/wxMaUser/exhibitLogin'
	})
}
// 设置身份
export function updateUserType(data){
	return request({
		method:'post',
		data:data.userType,
		url:`/shopApi/user/updateUserType/${data.uid}`
	})
}
//完善资料
export function updateUserInfo(params){
	return request({
		params,
		url:`/shopApi/user/updateUserInfo/${params.uid}`
	})
}
//获取用户信息
export function getInfo(params){
	return request({
		url:'/shopApi/user/getInfo',
		params
	})
}
//入驻信息修改
export function userEnterInfoSetting(data){
	return request({
		data,
		url:`/shopApi/user/userEnterInfoSetting`,
		method:'post'
	})
}
//修改头像 换绑手机
export function thirdUserSet(data){
	return request({
		data,
		method:'post',
		url:`/systemApi/thirdUser/thirdUserSet`
	})
}
//参展信息修改
export function userExhibitInfoSetting(data){
	return request({
		data,
		method:'post',
		url:`/shopApi/user/userExhibitInfoSetting`
	})
}
//参展信息获取
export function getDefaultUserExhibitInfoDto(){
	return request({
		url:`/shopApi/user/getDefaultUserExhibitInfoDto`
	})
}
//个人信息修改
export function userPersonalInformation(data){
	return request({
		data,
		method:'put',
		url:`/shopApi/user/userPersonalInformation`
	})
}
//退出登录
export function logout(data){
	return request({
		data,
		method:'delete',
		url:`/auth/token/logout`
	})
}